Loading and unloading additional movies

Use the Load Movie and Unload Movie statements to play additional movies without closing the Flash Player. Normally, the Flash Player displays a single Flash Player movie (SWF file). Load Movie lets you display several movies at once or switch between movies without loading another HTML document. Unload Movie removes a movie previously loaded by Load Movie.

For example, you can use Load Movie in the following ways:

To play a sequence of banner ads that are SWF files by placing a Load Movie statement at the end of each SWF file to load the next movie.
To develop a branching interface where the user can choose among several different SWF files.
To build a navigation interface where level 0 has navigation controls that load other levels. By loading levels, you can get smoother transitions than by loading new HTML pages in a browser.

Load Movie and Unload Movie statements have the following parameters:

Action identifies whether to load a movie, unload a movie, or load variables (from a remote text file) into an active movie. For more information see Obtaining variables from a remote file.
URL specifies an absolute or relative URL for the SWF file to load. For use in the Flash Player or for testing in Flash, all the SWF files must be stored in the same folder and listed as file names without folder or disk drive specifications.
Location specifies a level or target for the Load Movie or Unload Movie statement. In the Flash Player, movie files are assigned a number according to the order in which they were loaded. The movie that was loaded first is loaded at the bottom level, level 0. The movie in level 0 sets the frame rate, background color, and frame size for all other loaded movies. Movies are then "stacked" in higher numbered levels above the movie in level 0.
For more information about levels and targets, see Understanding multiple Timelines.
You can selectively load movies into levels that already have SWF files loaded. If you do, the new movie will replace the existing SWF file. If you use Load Variables, the active movie is not replaced, but the variables are updated with the new values. If you load a new movie into level 0, every level is unloaded, and level 0 is replaced with the new file.
Target specifies a movie clip that you want the loaded movie to replace. If you use Target, the movie that you loaded inherits the position, rotation, and scale properties of the targeted movie clip. See also Controlling other movies and movie clips.
Variables allows you to specify whether to send a set of the existing variables for the loaded movie to the location identified in the URL field. This can be used to send variables to a CGI script which generates a SWF file as its CGI output. Variables determines the whether to use GET or POST when downloading the URL's content, or to pass no variables at all. See Setting and identifying variables for more information about variables in Flash.

The Load Movie and Unload Movie statements do not function in the editing mode. Use Control > Test Movie to check whether they work. To test this statement, the movie you're loading must be at the specified path. If the path is an absolute URL, use File > Publish Preview option (a network connection must exist, and must be active) to test the movie.